package com.nsqt.banquan.service;

import com.nsqt.banquan.domain.WorkDO;

import java.util.List;
import java.util.Map;

/**
 * 作品
 */
public interface WorkService {
    WorkDO get(Integer id);

    WorkDO getBySn(String sn);

    List<WorkDO> list(Map<String, Object> map);

    List<WorkDO> listUnsubmit(Map<String, Object> map);

    List<WorkDO> listApproval(Map<String, Object> map);

    List<WorkDO> listExcel(Map<String, Object> map);

    List<WorkDO> exportApproval(Map<String, Object> map);

    int count(Map<String, Object> map);

    int countUnsubmit(Map<String, Object> map);

    int countPresubmit(Map<String, Object> map);

    int countApproval(Map<String, Object> map);

    int save(WorkDO software);

    int update(WorkDO software);

    int remove(Integer id);

    int approval(Integer id);

    int approval(String sn);

    int mail(String sn);

    int unApproval(Integer id);

    int batchRemove(Integer[] ids);

    int preSubmit(String sn);

    int cancelSubmit(Integer id);

    int batchSubmit(Integer[] ids);
}
